package com.backend.demo1.models;


import java.time.LocalDate;

public class Album {
    private long id;
    private String title;
    private String artist;
    private String imageUrl;
    private LocalDate releaseDate;
    private Double price;
    private String description;

 // 无参构造方法
    public Album() {}

    // 全参构造方法
    public Album(long id, String title, String artist, String imageUrl, LocalDate releaseDate, Double price, String description) {
        this.id = id;
        this.title = title;
        this.artist = artist;
        this.imageUrl = imageUrl;
        this.releaseDate = releaseDate;
        this.price = price;
        this.description = description;
    }

    // Getter和Setter方法
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getArtist() {
        return artist;
    }

    public void setArtist(String artist) {
        this.artist = artist;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public LocalDate getReleaseDate() {
        return releaseDate;
    }

    public void setReleaseDate(LocalDate releaseDate) {
        this.releaseDate = releaseDate;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
